/** 新品专区功能模块 */
export const newGoodsModuleMixin = {
	data() { return { newGoodsData: [], newGoodsLoading: true } },
	onLoad() { this.getnewGoodsFn(); },
	methods: {
		async getnewGoodsFn() {
			this.newGoodsLoading = true;
			try {
				const res = await this.$post('6544df8da2f0e', {});
				this.newGoodsData = (res.data || []).slice(0, 4);
			} catch (e) {}
			this.newGoodsLoading = false;
		}
	}
};